/**
 *
 * @author Ganesh Tiwari
 */
public class USAMoneyTrn {

    public static void main(String[] args) {
        Change ch=getCorrectChange(200);
        //do rest
    }

    public static Change getCorrectChange(int cents) {

        if (cents >= 0) {
            int doll=cents%100;     cents=cents/100;
            int quart=cents%25;     cents=cents/25;
            int dime=cents%10;      dime=cents/10;
            int nickel=cents%5;     cents=cents/5;
            Change c= new Change(doll, quart, dime, nickel, cents);
            return c;
        }
        return null;
    }
    static class Change {

        private final int _dollars;
        private final int _quarters; //25 cents
        private final int _dimes; // 10 cents
        private final int _nickels; // 5 cents
        private final int _cents; // 1 cent

        public Change(int dollars, int quarters, int dimes, int nickels, int cents) {
            _dollars = dollars;
            _quarters = quarters;
            _dimes = dimes;
            _nickels = nickels;
            _cents = cents;
        }

        public int getDollars() {
            return _dollars;
        }

        public int getQuarters() {
            return _quarters;
        }

        public int getDimes() {
            return _dimes;
        }

        public int getNickels() {
            return _nickels;
        }

        public int getCents() {
            return _cents;
        }
    }
}
